import request from "@/utils/request";
// 获取标签列表
export const getLabel = (params) =>
  request({
    url: "/tag",
    params,
  });
//获取推荐文章
export const getRecommendedArticle = (params) =>
  request({
    url: "/blog/popular/page",
    params,
  });

// 获取最新文章
export const getLatestArticles = (params) =>
  request({
    url: "/blog/newest/page",
    params,
  });
  
// 按标签获取文章
export const getLabelClassification = (params) =>
  request({
    url: "/blog/page/category",
    params,
  });

